import { defineStore } from 'pinia';
import { Mode1Data_separatelySavePaths } from '@p/main-modeData';

interface Returns {
	separatelySavePaths: Mode1Data_separatelySavePaths[];
	length: number;
}

export const useMode1Store = defineStore('mode1', {
	state(): Returns {
		return {
			//  分别保存路径
			separatelySavePaths: [],
			length: 0,
		};
	},
	actions: {
		setSeparatelySavePaths(arr: Mode1Data_separatelySavePaths[]) {
			this.separatelySavePaths = arr;
		},
		setLength(s: number) {
			this.length = s;
		},
	},
});
